package com.wulinbus.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wulinbus.dao.script.ScriptDAO;
import com.wulinbus.model.RemitOrderModel;
import com.wulinbus.model.ScriptModel;
import com.wulinbus.model.ScriptOwnModel;
import com.wulinbus.service.ScriptService;

@Service
public class ScriptServiceImpl implements ScriptService {
	@Resource
	private ScriptDAO scriptDAO;
	
	@Override
	public void addScript(ScriptModel scriptModel) {
		// TODO Auto-generated method stub
		 scriptDAO.addScript(scriptModel);
	}
	@Override
	public ScriptModel findScriptBySid(Integer sid) {
		ScriptModel script = scriptDAO.findScriptBySid(sid);
		return script;
	}
	@Override
	public List<ScriptModel> findListByUid(Integer uid) {
		// TODO Auto-generated method stub
		return scriptDAO.findListByUid(uid);
	}
	@Override
	public void addOwnScript(ScriptOwnModel scriptOwnModel) {
		// TODO Auto-generated method stub
		scriptDAO.addOwnScript(scriptOwnModel);
	}
	@Override
	public List<ScriptOwnModel> findOrderScriptOwnListByUid(Integer uid) {
		// TODO Auto-generated method stub
		return scriptDAO.findOrderScriptOwnListByUid(uid);
	}
	@Override
	public void plusAttributeCount(Integer sid) {
		// TODO Auto-generated method stub
		scriptDAO.plusAttributeCount(sid);
	}
	@Override
	public List<ScriptModel> getScriptList(String keyword, Integer start,
			Integer pageSize) {
		// TODO Auto-generated method stub
		return scriptDAO.getScriptList(keyword,start,pageSize);
	}
	@Override
	public Integer count(String keyword) {
		// TODO Auto-generated method stub
		return scriptDAO.count(keyword);
	}
	@Override
	public List<ScriptModel> getScriptListTimeDown(Integer start, Integer pageSize) {
		// TODO Auto-generated method stub
		return scriptDAO.getScriptListTimeDown(start,pageSize);
	}
	@Override
	public List<ScriptModel> getScriptListTimeUp(Integer start,Integer pageSize) {
		// TODO Auto-generated method stub
		return scriptDAO.getScriptListTimeUp(start,pageSize);
	}
	@Override
	public List<ScriptOwnModel> getAttributeList(Integer sid,Integer start, Integer pageSize) {
		// TODO Auto-generated method stub
		return scriptDAO.getAttributeList(sid,start,pageSize);
	}
	@Override
	public Integer attributeCount(Integer sid) {
		// TODO Auto-generated method stub
		return scriptDAO.attributeCount(sid);
	}
	@Override
	public List<ScriptModel> getScriptListRemainingTimeDown(Integer start,
			Integer pageSize) {
		// TODO Auto-generated method stub
		return scriptDAO.getScriptListRemainingTimeDown(start,pageSize);
	}
	@Override
	public List<ScriptModel> getScriptListRemainingTimeUp(Integer start,
			Integer pageSize) {
		// TODO Auto-generated method stub
		return scriptDAO.getScriptListRemainingTimeUp(start,pageSize);
	}
	@Override
	public List<ScriptModel> getScriptListParticipateCountDown(Integer start,
			Integer pageSize) {
		// TODO Auto-generated method stub
		return scriptDAO.getScriptListParticipateCountDown(start,pageSize);
	}
	@Override
	public List<ScriptModel> getScriptListParticipateCountUp(Integer start,
			Integer pageSize) {
		// TODO Auto-generated method stub
		return scriptDAO.getScriptListParticipateCountUp(start,pageSize);
	}
	@Override
	public List<ScriptModel> getScriptListAmountDown(Integer amount_b,
			Integer amount_e, Integer start, Integer pageSize) {
		// TODO Auto-generated method stub
		return scriptDAO.getScriptListAmountDown(amount_b,amount_e,start,pageSize);
	}
	@Override
	public List<ScriptModel> getScriptListAmountUp(Integer amount_b,
			Integer amount_e, Integer start, Integer pageSize) {
		// TODO Auto-generated method stub
		return scriptDAO.getScriptListAmountUp(amount_b,amount_e,start,pageSize);
	}
	@Override
	public ScriptOwnModel findScriptOwnByOwnSid(Integer own_sid) {
		// TODO Auto-generated method stub
		return scriptDAO.findScriptOwnByOwnSid(own_sid);
	}
	@Override
	public List<ScriptOwnModel> findScriptOwnListByUid(Integer uid,
			Integer start, Integer pageSize) {
		// TODO Auto-generated method stub
		return scriptDAO.findScriptOwnListByUid(uid,start,pageSize);
	}
	@Override
	public Integer attributeCountByUid(Integer uid) {
		// TODO Auto-generated method stub
		return scriptDAO.attributeCountByUid(uid);
	}
	@Override
	public void like(Integer own_sid) {
		// TODO Auto-generated method stub
		scriptDAO.like(own_sid);
	}
	@Override
	public List<ScriptOwnModel> getScriptOwnListOrderLike(Integer count) {
		// TODO Auto-generated method stub
		return scriptDAO.getScriptOwnListOrderLike(count);
	}
	@Override
	public List<ScriptModel> getScriptListByUid(Integer uid,Integer start, Integer pageSize) {
		// TODO Auto-generated method stub
		return scriptDAO.getScriptListByUid(uid,start,pageSize);
	}
	@Override
	public Integer countByUid(Integer uid) {
		// TODO Auto-generated method stub
		return scriptDAO.countByUid(uid);
	}
	@Override
	public Integer addViewNums(Integer own_sid) {
		return scriptDAO.addViewNums(own_sid);
	}
	@Override
	public List<ScriptOwnModel> getScriptAttributeListByUid(Integer uid,
			Integer start, Integer pageSize) {
		// TODO Auto-generated method stub
		return scriptDAO.getScriptAttributeListByUid(uid,start,pageSize);
	}
	
	@Override
	public Integer addLike(Integer uid, Integer own_sid) {
		return scriptDAO.addLike(uid, own_sid);
	}
	
	@Override
	public Integer getLike(Integer uid, Integer own_sid) {
		return scriptDAO.getLike(uid, own_sid);
	}
	
	@Override
	public Integer countAttributeByUid(Integer uid) {
		// TODO Auto-generated method stub
		return scriptDAO.countAttributeByUid(uid);
	}
	@Override
	public void editorScript(ScriptModel scriptModel) {
		// TODO Auto-generated method stub
		scriptDAO.editorScript(scriptModel);
	}
	@Override
	public List<ScriptModel> getScriptListBySids(List<Integer> sids) {
		// TODO Auto-generated method stub
		return scriptDAO.getScriptListBySids(sids);
	}
	@Override
	public void editorOwnScript(ScriptOwnModel scriptOwnModel) {
		// TODO Auto-generated method stub
		scriptDAO.editorOwnScript(scriptOwnModel);
	}
	@Override
	public List<ScriptModel> getAllScriptList() {
		// TODO Auto-generated method stub
		return scriptDAO.getAllScriptList();
	}
	@Override
	public List<ScriptModel> getMaxAttributeScriptList() {
		// TODO Auto-generated method stub
		return scriptDAO.getMaxAttributeScriptList();
	}
	@Override
	public Integer delete(Integer sid) {
		// TODO Auto-generated method stub
		return scriptDAO.delete(sid);
	}
	@Override
	public List<ScriptOwnModel> getScriptOwnList(String keyword, Integer start,
			Integer pageSize) {
		// TODO Auto-generated method stub
		return scriptDAO.getScriptOwnList(keyword,start,pageSize);
	}
	@Override
	public Integer ScriptOwnCount(String keyword) {
		// TODO Auto-generated method stub
		return scriptDAO.ScriptOwnCount(keyword);
	}
	@Override
	public Integer attributeDelete(Integer own_sid) {
		// TODO Auto-generated method stub
		return scriptDAO.attributeDelete(own_sid);
	}
	@Override
	public List<ScriptModel> getCurrentTimeScriptList(String systemDate) {
		// TODO Auto-generated method stub
		return scriptDAO.getCurrentTimeScriptList(systemDate);
	}
	@Override
	public ScriptOwnModel getWinnerModel(Integer sid) {
		// TODO Auto-generated method stub
		return scriptDAO.getWinnerModel(sid);
	}
}
